<!--begin sidebar left-->
<div id="sbl">
			<?php
			//  <!--begin Admin bar-->
			global $user_identity,$user_level;
			get_currentuserinfo();
			if ($user_identity) { ?>
			<ol>
			<h2><?php _e('Admin','apple4us'); ?></h2>
			<div class="sbrbar">
				<ul class="admin-bar">
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/" title="<?php _e('View the blog\'s summary','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_dashboard.png" alt="<?php _e('Dashboard','apple4us'); ?>" title="<?php _e('View the blog\'s summary','apple4us'); ?>" /><strong><?php _e('Admin','apple4us'); ?></strong></a></li>
					<?php if ($user_level >= 1) { ?>
					<?php // Get comments awaiting moderation
					$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
					?>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/post-new.php" title="<?php _e('Create a new post','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_post_new.png" alt="<?php _e('New Entry','apple4us'); ?>" title="<?php _e('Create a new post','apple4us'); ?>" /><?php _e('Post','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/page-new.php" title="<?php _e('Create a new page','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_page_new.png" alt="<?php _e('New Page','apple4us'); ?>" title="<?php _e('Create a new page','apple4us'); ?>" /><?php _e('Page','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/edit.php" title="<?php _e('Administer the entries','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_post_manage.png" alt="<?php _e('Manage Entries','apple4us'); ?>" title="<?php _e('Administer the entries','apple4us'); ?>" /><?php _e('Manage','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/link-manager.php" title="<?php _e('Administer the links','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_link_manage.png" alt="<?php _e('Links','apple4us'); ?>" title="<?php _e('Administer the links','apple4us'); ?>" /><?php _e('Links','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/upload.php" title="<?php _e('Administer the uploads','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_uploads_manage.png" alt="<?php _e('Uploads','apple4us'); ?>" title="<?php _e('Administer the uploads','apple4us'); ?>" /><?php _e('Uploads','apple4us'); ?></a></li>
					<?php } ?>
				</ul>
			</div>
			<?php if ($user_level >= 1) { ?>
			<div class="sbrbar">
				<ul class="admin-bar">
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/moderation.php" title="<?php _e('Administer the comments','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_comments.png" alt="<?php _e('Comments','apple4us'); ?>" title="<?php _e('Administer the comments','apple4us'); ?>" /><?php _e('Comment','apple4us'); ?> <?php if ( $numcomments ) : ?> (<strong><?php echo number_format($numcomments); ?></strong>)<?php endif; ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/themes.php" title="<?php _e('Change the blog\'s look and feel','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_presentation.png" alt="<?php _e('Design','apple4us'); ?>" title="<?php _e('Change the blog\'s look and feel','apple4us'); ?>" /><?php _e('Design','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/plugins.php" title="<?php _e('Administer the plugins','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_plugins.png" alt="<?php _e('Plugins','apple4us'); ?>" title="<?php _e('Administer the plugins','apple4us'); ?>" /><?php _e('Plugins','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/options-general.php" title="<?php _e('Change the blog\'s options','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_options.png" alt="<?php _e('Options','apple4us'); ?>" title="<?php _e('Change the blog\'s options','apple4us'); ?>" /><?php _e('Options','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php" title="<?php _e('Administer the users','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_users.png" alt="<?php _e('Users','apple4us'); ?>" title="<?php _e('Administer the users','apple4us'); ?>" /><?php _e('Users','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_logout.png" alt="<?php _e('Logout','apple4us'); ?>" title="<?php _e('Logout of Wordpress','apple4us'); ?>" /><?php _e('Logout &raquo;','apple4us'); ?></a></li>
				</ul>
			</div>
			<br style="clear:left;" />
			<?php } ?>
			</ol>
			<?php } ?><!--End Admin bar-->

<!--begin feedsub
please replace the feed url with yours.
-->
<ol>
<h2><?php _e('Subscribe','apple4us'); ?></h2>
<ul>
<div class="feedsub">
<a href="<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅 <?php bloginfo('name'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/feed.gif" alt="订阅 <?php bloginfo('name'); ?>" /></a>
<span class="feedsub_title"><a href="<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅 <?php bloginfo('name'); ?>" >订阅 RSS</a>(<a href="http://dupola.com/about/#rss" target="_blank" title="" title="什么是RSS Feed?">?</a>)</span><a href="<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅 <?php bloginfo('name'); ?>" ><img src="<?php bloginfo('template_url'); ?>/images/feedcount.gif"></a>
</div>
<div class="feedicon">
<a href="http://fusion.google.com/add?feedurl=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到iGoogle或Google Reader"><img src="<?php bloginfo('template_url'); ?>/images/rss/google.gif" alt="订阅到iGoogle或Google Reader" /></a>
<a href="http://www.xianguo.com/subscribe.php?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到鲜果"><img src="<?php bloginfo('template_url'); ?>/images/rss/xianguo.gif" alt="订阅到鲜果" /></a>
<a href="http://www.zhuaxia.com/add_channel.php?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到抓虾"><img src="<?php bloginfo('template_url'); ?>/images/rss/zhuaxia.gif" alt="订阅到抓虾" /></a>
<a href="http://www.pageflakes.com/subscribe.aspx?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到飞鸽"><img src="<?php bloginfo('template_url'); ?>/images/rss/pageflakes.gif" alt="订阅到飞鸽" /></a>
<a href="http://www.bloglines.com/sub/<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到Bloglines"><img src="<?php bloginfo('template_url'); ?>/images/rss/bloglines.gif" alt="订阅到Bloglines" /></a>
<a href="http://add.my.yahoo.com/rss?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到我的雅虎"><img src="<?php bloginfo('template_url'); ?>/images/rss/yahoo.gif" alt="订阅到我的雅虎" /></a>
<a href="http://www.netvibes.com/subscribe.php?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到NetVibes"><img src="<?php bloginfo('template_url'); ?>/images/rss/netvibes.gif" alt="订阅到NetVibes" /></a>
<a href="http://www.newsgator.com/ngs/subscriber/subfext.aspx?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到Newsgatar"><img src="<?php bloginfo('template_url'); ?>/images/rss/newsgator.gif" alt="订阅到Newsgatar" /></a>
<a href="http://www.rojo.com/add-subscription?resource=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到Rojo"><img src="<?php bloginfo('template_url'); ?>/images/rss/rojo.gif" alt="订阅到Rojo" /></a>
<a href="http://reader.yodao.com/#url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到网易有道"><img src="<?php bloginfo('template_url'); ?>/images/rss/yodao.gif" alt="订阅到网易有道" /></a>
<a href="http://www.iNeZha.com/add?url=<?php bloginfo('rss2_url'); ?>" target="_blank" title="通过哪吒订阅到MSN，Gtalk，Skype"><img src="<?php bloginfo('template_url'); ?>/images/rss/anothr.gif" alt="通过哪吒订阅到MSN，Gtalk，Skype" /></a>
<a href="http://mail.qq.com/cgi-bin/reader_switch?rssswitch=1&feedurl=<?php bloginfo('rss2_url'); ?>" target="_blank" title="订阅到QQ邮箱"><img src="<?php bloginfo('template_url'); ?>/images/rss/qqmail.gif" alt="订阅到QQ邮箱" /></a>
</div>

</ul>
</ol><!--end feedsub-->

<!--Begin Widgets Check--><?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('LeftSidebar') ) : else : ?>

<!--Begin Search End Search-->
<ol>
<h2><a name="search"><?php _e('Search');?></a></h2>
<ul>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
</ul>
</ol>

<!--Begin tag cloud-->
<ol>
<h2><?php _e('Tag Cloud','apple4us');?></h2>
<ul>
<li>
<?php wp_tag_cloud('smallest=8&largest=15&number=15&order=DESC'); ?>
</li>
</ul>
</ol><!--End tag cloud-->

<ol>
<h2><?php _e('Pages','apple4us'); ?></h2>
<ul>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</ol>

<ol>
<h2><?php _e('Categories','apple4us'); ?></h2>
<ul>
<?php wp_list_cats('optioncount=1'); ?>
</ul>
</ol> 

<!--Begin Recent Posts--><ol><h2><?php _e('Recent Posts','apple4us'); ?></h2>
<ul>
<?php
$myposts = get_posts('numberposts=6&offset=0');
foreach($myposts as $post) :
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title();
?></a></li>
<?php endforeach; ?>
</ul>
</ol><!--End Recent Posts-->


<!--begin recent comments
You can download this plugin here:http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/
-->
<?php if((is_page() || is_home() )){ ?>
<?php if (function_exists('get_recent_comments')) { ?>
<ol><h2><?php _e('Recent Comments','apple4us'); ?></h2>
<ul>
<?php get_recent_comments(); ?>
</ul>
</ol>
<?php } ?>   
<!--end recent comments-->
<?php } ?>


<!--Begin blogroll-->
<ol>
<?php wp_list_bookmarks('title_li=&category_before=&category_after=&category_orderby=id&category_order=ASC'); ?>
</ol><!--End blogroll-->

<!--Begin Meta-->
<?php if((is_home() )){ ?>
<ol>
<h2><?php _e('Meta','apple4us'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
</ul>
</ol>
<?php } ?>  
<!--End Meta-->


<?php endif; ?><!--End Widgets Check-->
</div>
<!--end sidebar left-->